package com.bwda.dsrs.filecenter.domain.form.fileapply;

import com.bwda.dsrs.base.centerbase.form.BaseQueryForm;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @description:文件申请查询表单
 * @author: yangjun
 * @create: 2019-04-28 11:15
 */
@Data
@ApiModel(description = "文件申请,共享，流转，外发")
public class FileApplyQueryForm extends BaseQueryForm {


    @ApiModelProperty(value = "0共享1流转2外发")
    @Max(value = 5,message = "申请类型错误")
    @Min(value = 0,message = "申请类型错误")
    private Integer applyType;

    @ApiModelProperty(value = "0内部审核1外部审核")
    private Integer auditType;


    /**
     * 0申请中1通过2拒绝
     */
    private Integer applyState;

    @ApiModelProperty(value = "文件名称")
    private String fileNames;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "结束时间")
    private Date endTime;

}